package com.lifa.service.impl;

import com.lifa.dao.DianpuDao;
import com.lifa.entity.Dianpu;
import com.lifa.service.DianpuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DianpuServiceImpl implements DianpuService {
    @Autowired
    private DianpuDao dianpuDao;

    @Override
    public List<Dianpu> selectDianpu() {
        return dianpuDao.selectDianpu();
    }

    @Override
    public long Dianpuzongtiaoshu() {
        return dianpuDao.Dianpuzongtiaoshu();
    }

    @Override
    public List<Dianpu> Dianpufenye(int offset, int limit) {
        return dianpuDao.Dianpufenye(offset,limit);
    }
}
